# class Student:
#
#     def __init__(self,study_num,name,age,sex,height,weight,grade,address,phone_num):
#         self.study_num = study_num
#         self.name = name
#         self.age = age
#         self.sex = sex
#         self.height = height
#         self.weight = weight
#         self.grade = grade
#         self.address = address
#         self.phone_num = phone_num
#     def study(self,time):
#         print(f"{self.name}今日学习了{time}小时")
#     def play_game(self,game_name):
#         print(f"{self.name}今天玩了{game_name}")
#     def play_program(self,rows):
#         print(f"{self.name}今天敲了{rows}行代码")
#     def sum_ab(self,*a):
#         total = 0
#         for i in a:
#             total += i
#         return total
#
# s1 = Student(211404060328,'袁姗姗',23,'男',175,70,'A','四川',17760434875)
# s1.study(8)
# s1.play_game('穿越火线')
# s1.play_program(100)
# print(s1.sum_ab(1,3,4))



# class Car:
#     def __init__(self,model,wheel,color,weight,size):
#         self.model = model
#         self.wheel = wheel
#         self.color = color
#         self.weight = weight
#         self.size = size
#     def run(self,function):
#         print(function)
# flari = Car('s',4,'梦幻蓝','1.5t','25l')
# flari.run('跑车')
# bbw = Car('M5',4,'黑武士','1.7t','20l')
# bbw.run('轿车')
# linmu = Car('s',2,'火焰红','150kg','15l')
# linmu.run('机车')
# wulin = Car('s',4,'梦幻蓝','1.5t','25l')
# wulin.run('跑车')
# tuolaji = Car('s',4,'经典红','2t','50l')
# tuolaji.run('农具车')

# #
# class Computer:
#     def __init__(self,model,time,color,weight,cpu,storage,gb):
#         self.model = model
#         self.time = time
#         self.color = color
#         self.weight = weight
#         self.cpu = cpu
#         self.storage = storage
#         self.gb = gb
#     def play_game(self, game_name):
#          print(f"今天玩了{game_name}")
#     def work(self):
#          print("办公")
# xm = Computer('s3','20h','科幻银','10kg','AMD s5','32GB','1T')
# xm.work()
# xm.play_game('英雄联盟')

# class Monkey:
#     def __init__(self,species,sex,color,weight):
#         self.species = species
#         self.sex = sex
#         self.color = color
#         self.weight = weight
#     def create_fire(self,materials):
#         print(f"利用{materials}造火")
#     def learning(self,*things):
#         for i in things:
#             print(f"一只{self.sex}的{self.color}{self.species}学习了{i}")
# GG = Monkey('卷尾猴','公','金色','9Kg')
# GG.create_fire("木头")
# GG.learning("吹口哨","喝水","捕猎")


# class People:
#     def __init__(self,name,sex,age,phone_money,phone_brand,battery_size,phone_size,phone_time,scores):
#         self.name = name
#         self.sex = sex
#         self.age = age
#         self.phone_money = phone_money
#         self.phone_brand = phone_brand
#         self.battery_size = battery_size
#         self.phone_size = phone_size
#         self.phone_time = phone_time
#         self.scores = scores
#
#     def send_message(self,message):
#         print(f"发送成功，短信内容为：{message}")
#
#     def call(self,number,time):
#         if not number:
#             print("你所拨打的号码为空")
#         elif self.phone_money < 1:
#             print("您的花费不足，拨打失败！")
#         else:
#             if 0<time<10:
#                 self.phone_money -= time*1
#                 print(f"拨打成功，您的花费还剩:{self.phone_money}")
#                 self.scores += 15*time
#             elif 10<time<20:
#                 self.phone_money -= time * 0.8
#                 print(f"拨打成功，您的花费还剩:{self.phone_money}")
#                 self.scores += 39 * time
#             else:
#                 self.phone_money -= time * 0.65
#                 print(f"拨打成功，您的花费还剩:{self.phone_money}")
#                 self.scores += 48 * time
#
# p1 = People("占山",'男',23,100,'华为','6500mA','6.5英寸','9h',100)
# p1.send_message("hello,python world")
# p1.call(17760434875,15)
